package com.haolijun.eecms.dao;

import com.haolijun.eecms.entity.TbActive;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName TbActiveDao
 * @Description TODO
 * @Author hljstart
 * @Date 2023/3/12 9:50
 * @Version 1.0
 */
@Mapper
public interface TbActiveDao {

    public List<HashMap> searchActiveByPage(HashMap param);

    public long searchActiveCount(HashMap param);

    // 发布活动
    public int insert(TbActive active);

    // 删除活动
    public int delete(Map<String,Integer> param);

    // 查看活动细节
    public HashMap searchActiveInfo(@Param("acId") Integer acId);
}
